<?php
include "connect.php";

$t_attendance_id=$_POST['t_attendance_id'];
$teacher_id=$_POST['teacher_id'];
$date=$_POST['date'];
$present=$_POST['present'];


$dbquery="INSERT INTO teacher_attendance (t_attendance_id,teacher_id,date,present) VALUES ('$t_attendance_id','$teacher_id','$date','$present')";

mysql_query($dbquery);
	
header("location:success attendance.html");
?>